package com.rongc.client.freight.business.supply.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.business.supply.model.SupplyMyList;


/*
*  找货
* */

public class SupplySearchApi extends AbsRequest<SupplySearchApi.SupplySearchParams, SupplyMyList> {

    public SupplySearchApi(SupplySearchParams feedbackParams, Listener<SupplyMyList> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getSearchGoodsUrl(), feedbackParams, listener, errorListener, SupplyMyList.class);
    }

    public static class SupplySearchParams extends BaseParams {

        public SupplySearchParams(String startLon, String startLat, String endLon,
                                  String endLat, String carLength, String carModel,String loadTime, String page) {
            put("startLon",startLon);
            put("startLat",startLat);
            put("endLon",endLon);
            put("endLat",endLat);
            put("carLength",carLength);
            put("carModel",carModel);
            put("loadTime",loadTime);
            put("page",page);
        }
    }


}
